package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    //查询所有菜品
    List<Category> findAll();

    //新增菜品
    void categoryAdd(Category category);

    //修改c菜品
    void categorUpdat(Category category);

    //根据菜品查有无此菜
    Integer findDish(Long id);

    //根据菜品查有无此套餐
    Integer findSetmeal(Long id);

    //根据id删除
    void categoryDeletByid(Long id);


}
